//
//  SEGCreateActivityViewController.h
//  ExcellentHome
//
//  Created by 陈区 on 13-11-21.
//  Copyright (c) 2013年 陈区. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatePickerView.h"
#import "ActivityModel.h"
#import "ActivityRequestModel.h"

@interface SEGCreateActivityViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate,UITextViewDelegate,DatePickerViewDelegate,UIActionSheetDelegate,UINavigationControllerDelegate,ViewControllerDelegate>
{
    UITableView *m_tableView;
    

    NSData *imageData;
    
    UITextField *tfName;
    UITextField *tfAddr;
    UITextField *tfCondition;
    UITextField *tfFeiYong;
    UITextField *tfPeople;
    UITextField *tfTotalPeople;

    UITextView *tvDesc;
    
    UIButton *btnBegin;
    UIButton *btnEnd;
    UIButton *btnStart;
    UIButton *btnStartTime;

    UIButton *btnImage;
    
    UILabel *lbType;
    UILabel *lbToObject;
    
    UIButton *btnStartActivity;

    DatePickerView *datePickerView;
    
    BOOL         isBegin;//点击了开始时间
    BOOL         isEnd;//点击了结束时间
    BOOL         isStart;//点击了活动时间
    BOOL         isTime;//点击了活动具体时间
    BOOL         m_isShowDatePickerView;
    BOOL         isCanEdit;//是否可以编辑，默认可以编辑
    
    ActivityModel *m_ActivityModel;
    
    NSDate      *m_tmpStartTime;     //临时时间。
    NSDate      *m_tmpTime;
    NSString *tmpStartTmieStr;
    NSString *timeStr;

    
    //用来处理键盘弹出来时，滚动到可见
    UITextField *curTextField;//当前正在编辑的文本框
    UITextView  *curTextView;//当前正在编辑的文本框
    
    
    NSString *groupChatID;//活动群组ID
    
    
    UIButton *doneInKeyboardButton;
    BOOL     showDoneInKeyboard;
    
    
}
@property(nonatomic,retain)NSData *imageData;
@property(nonatomic,retain)ActivityModel *activityModel;
@property(nonatomic,retain)NSString *tmpStartTmieStr;
@property(nonatomic,retain)NSString *timeStr;




@end
